package com.sinocare.project.report.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sinocare.project.common.domain.PercentPass;
import com.sinocare.project.common.domain.SccReprot;
import com.sinocare.project.common.domain.SccResult;
import com.sinocare.project.common.domain.Store;
import com.sinocare.project.common.domain.vo.SccMedicalResultVo;
import com.sinocare.project.common.domin.SccMedicalResult;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SccResultMapper extends BaseMapper<SccResult> {
    //    搜索查询检测结果
    List<SccResult> queryResult(SccMedicalResultVo resultVo);
    //查询所有总店名
    List<Store> selectStoreName();

    //查询所有总店名
    List<Store> selectsubStoreName(String storeCode);

//    查询药店的检测量
    List<SccResult> selectResult(String storeCode);
//查询药店的检测人数
    List<SccResult> selectCount(String storeCode);

    //合格率
    List<PercentPass> selecthg(String storeCode);

//    每日检测人数

    List<Integer> selectRs2(SccMedicalResultVo resultVo);


//    检测结果
    List<PercentPass> queryReprot(String storeCode);

//    指标异常数据
    List<PercentPass> selectRl(String storeCode);

}
